import { ctx2 } from '@app-base/module';

// 刷新画布
const refreshCanvas = () =>
  setTimeout(() => {
    ctx2.viewer.requestRender();
    ctx2.viewer.sceneSetup.updateViewportSize();
  });

// 清除模型
const clearToolsGroup = () => {
  ctx2.cadScene.toolsGroup.clear();
  refreshCanvas();
};
export { refreshCanvas, clearToolsGroup as clearModel };
